package com.evan.designpatterns.adapter.refactor.adapter;

import com.evan.designpatterns.adapter.refactor.old.Ac;

/**
 * @author :liujiapeng01
 * @date :2019-03-18 11:21
 **/
public class ChinaDcAdapter implements Dc5Adapter {
    @Override
    public boolean support(Ac ac) {
        return ac.outputAc() == 220;
    }

    @Override
    public int outputDC5(Ac ac) {
        return ac.outputAc()/44;
    }
}
